package com.eaoa.vo.bus.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the bus_route table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="bus_route"
 */

public abstract class BaseBusRoute  implements Serializable {

	public static String REF = "BusRoute";
	public static String PROP_ROUTENAME = "routename";
	public static String PROP_ROUTENO = "routeno";
	public static String PROP_ISLOCK = "islock";
	public static String PROP_CREATORNAME = "creatorname";
	public static String PROP_REMARK = "remark";
	public static String PROP_CREATEDATE = "createdate";
	public static String PROP_CREATORNO = "creatorno";


	// constructors
	public BaseBusRoute () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseBusRoute (java.lang.Long routeno) {
		this.setRouteno(routeno);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Long routeno;

	// fields
	private java.lang.String routename;
	private java.lang.String remark;
	private java.lang.String islock;
	private java.lang.Long creatorno;
	private java.lang.String creatorname;
	private java.util.Date createdate;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="increment"
     *  column="routeno"
     */
	public java.lang.Long getRouteno () {
		return routeno;
	}

	/**
	 * Set the unique identifier of this class
	 * @param routeno the new ID
	 */
	public void setRouteno (java.lang.Long routeno) {
		this.routeno = routeno;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: routename
	 */
	public java.lang.String getRoutename () {
		return routename;
	}

	/**
	 * Set the value related to the column: routename
	 * @param routename the routename value
	 */
	public void setRoutename (java.lang.String routename) {
		this.routename = routename;
	}



	/**
	 * Return the value associated with the column: remark
	 */
	public java.lang.String getRemark () {
		return remark;
	}

	/**
	 * Set the value related to the column: remark
	 * @param remark the remark value
	 */
	public void setRemark (java.lang.String remark) {
		this.remark = remark;
	}



	/**
	 * Return the value associated with the column: islock
	 */
	public java.lang.String getIslock () {
		return islock;
	}

	/**
	 * Set the value related to the column: islock
	 * @param islock the islock value
	 */
	public void setIslock (java.lang.String islock) {
		this.islock = islock;
	}



	/**
	 * Return the value associated with the column: creatorno
	 */
	public java.lang.Long getCreatorno () {
		return creatorno;
	}

	/**
	 * Set the value related to the column: creatorno
	 * @param creatorno the creatorno value
	 */
	public void setCreatorno (java.lang.Long creatorno) {
		this.creatorno = creatorno;
	}



	/**
	 * Return the value associated with the column: creatorname
	 */
	public java.lang.String getCreatorname () {
		return creatorname;
	}

	/**
	 * Set the value related to the column: creatorname
	 * @param creatorname the creatorname value
	 */
	public void setCreatorname (java.lang.String creatorname) {
		this.creatorname = creatorname;
	}



	/**
	 * Return the value associated with the column: createdate
	 */
	public java.util.Date getCreatedate () {
		return createdate;
	}

	/**
	 * Set the value related to the column: createdate
	 * @param createdate the createdate value
	 */
	public void setCreatedate (java.util.Date createdate) {
		this.createdate = createdate;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.eaoa.vo.bus.BusRoute)) return false;
		else {
			com.eaoa.vo.bus.BusRoute busRoute = (com.eaoa.vo.bus.BusRoute) obj;
			if (null == this.getRouteno() || null == busRoute.getRouteno()) return false;
			else return (this.getRouteno().equals(busRoute.getRouteno()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getRouteno()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getRouteno().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}